package mcweb.model.service;

import java.sql.SQLException;

import mcweb.dto.ProductDTO;
import mcweb.model.dao.ICartDAO;

public class CartServiceImpl implements ICartService {
	
	private ICartDAO cartDao;
	
	public CartServiceImpl() {}
	public CartServiceImpl(ICartDAO cartDao) {
		this.cartDao = cartDao;
	}

	@Override
	public ProductDTO selectCartById(String id) throws SQLException{
		return cartDao.selectCartById(id);
	}
}
